package jmu.cyxwcy.librarymanagement.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.yulichang.wrapper.MPJLambdaWrapper;
import jmu.cyxwcy.librarymanagement.mapper.BookMapper;
import jmu.cyxwcy.librarymanagement.pojo.Book;
import jmu.cyxwcy.librarymanagement.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;



@Service
public class BookServiceImpl extends ServiceImpl<BookMapper ,Book> implements BookService{

    @Autowired
    private BookMapper bookMapper;
    @Override
    public IPage<Book> join(IPage<Book> page, MPJLambdaWrapper<Book> queryWrapper) {
        return bookMapper.selectJoinPage(page, Book.class, queryWrapper);
    }
}
